﻿using Microsoft.AspNetCore.Components;
using Microsoft.JSInterop;

namespace BlazorLearn.Shared.Pages;
partial class Isolation
{
    [Inject] IJSRuntime JS { get; set; }
    [Parameter] public string? Title { get; set; }
    [Parameter] public RenderFragment? ChildContent { get; set; }

    async Task Click()
    {
        var module = await JS.InvokeAsync<IJSObjectReference>("import", "./_content/BlazorLearn.Shared/Pages/isolation.razor.js");
        await module.InvokeVoidAsync("isolation");
    }
}
